package com.neusoft.hifly.rpc.mobile.dao;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

import com.neusoft.hifly.core.pojo.ApiResponse;
import com.neusoft.hifly.rpc.mobile.dao.fallback.PushMobileFallback;

/**
 * Title: 消息推送中间件
 * <p>
 * Description: 站内信 API接口
 * <p>
 * Copyright: 2019
 * <p>
 * Company: 东软汉枫
 *
 * @author lh_neu
 * @version 1.0.0
 */
@FeignClient(value = "ctcloud-cbb-push", fallbackFactory = PushMobileFallback.class)
public interface IPushMobileDao {
	/**
	 * 根据传入的json字符串来判断实现什么方式的推送通知内容为 ALERT
	 *
	 * @param jsonOfPushType
	 *            推送方式json串
	 * @return 返回值
	 */
	@RequestMapping(value = "/push/api/v1/push/mobile/sendMobilePushAlertFromJson", method = RequestMethod.GET)
	<T> ApiResponse<T> sendMobilePushAlertFromJson(@RequestParam("jsonOfPushType") final String jsonOfPushType);
}
